package com.aids_malaria.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;

import com.aids_malaria.http.response.LoginUserAuth;
import com.aids_malaria.http.response.MosquitoInvest;

import java.util.List;

@Dao
public interface LoginUserAuthDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    List<Long> insertAll(List<LoginUserAuth> loginUserAuthList);

    @Query("delete from loginUserAuth")
    int deleteAll();

    @Query("SELECT * FROM loginUserAuth where func_code = :func_code ")
    List<LoginUserAuth> findByAuthCode(String func_code);

}
